package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.entity.UserEntity;
import com.repository.UserEntityRepository;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    UserEntityRepository userRep;

    @Override
    public UserEntity insert(UserEntity userInfo) {
        return userRep.save(userInfo);
    }

    @Override
    public List<UserEntity> findAll() {
        return userRep.findAll();
    }

}
